keyboard_clear


Description

With this function you can clear the current keyboard state, which essentially means that if the key is being held down, it will no longer be recognised until it is released again (which won't generate a keyboard_key_release event either on this occasion) and pressed again.


Syntax:

keyboard_clear(key);

Argument Description
key The key to clear.


Returns:

N/A


Example:

keyboard_clear(vk_space);

The above code clears the state of the spacebar.